<template>
  <van-tabbar v-model="active" route>
    <van-tabbar-item replace to="/chat" icon="chat-o">聊天</van-tabbar-item>
    <van-tabbar-item replace to="/contacts" icon="friends-o">联系人</van-tabbar-item>
  </van-tabbar>
</template>

<script setup>
import { ref } from 'vue'

const active = ref(0)
</script>